/*
 * Copyright 2010 Stefan Bachert, wwwApp, http://gwtworld.de
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package a1.decor.style;

import a1.decor.DecorInterface;

public class DecorStyle implements DecorInterface {
  private final static String color = "#000";//333"; 
  private final static String font = "11px tahoma,arial,sans-serif,helvetica"; 
  /*
   * Any Strings are allowed
   */
  @Override
  public String getDecorname() {
    return "Standard";
  }
  @Override
  public String getDecorversion() {
    return "1.0.0";
  }
  
  
  /*
   * For CSS font: 
   *    font-style
   *    font-variant
   *    font-weight
   *    font-size
   *    font-size/line-height
   *    font-family
   */
  @Override
  public String getFont() {
    return font;
  }
  @Override
  public String getFixedFont() {
    return "11px Courier";
  }
  @Override
  public String getButtonFont() {
    return "11px helvetica";
  }
  @Override
  public String getCaptionFont() {
    return font;
  }
  @Override
  public String getEditFont() {
    return "12px helvetica";
  }
  @Override
  public String getLabelFont() {
    return font;
  }
  @Override
  public String getMenuFont() {
    return font;
  }
  @Override
  public String getTabFont() {
    return font;
  }
  
  
  /*
   * For CSS color: color
   */
  @Override
  public String getColor() {
    return color;
  }

  @Override
  public String getLinkColor() {
    return "#0000aa"; 
  }

  @Override
  public String getColorDisabled() {
    return "#888";
  }

  @Override
  public String getColorError() {
    return "#0000FF";
  }

  @Override
  public String getColorHint() {
    return "#00C0FF";
  }

  @Override
  public String getTabColor() {
    return color;
  }
  @Override
  public String getMenuColor() {
    return color;
  }
  @Override
  public String getLabelColor() {
    return color;
  }
  @Override
  public String getEditColor() {
    return color;
  }
  @Override
  public String getButtonColor() {
    return color;
  }
  @Override
  public String getCaptionColor() {
    return color;
  }

  /*
   * For CSS background:
   * 
   */
  @Override
  public String getBackground() {
    return "#ffffff";
  }
  
  /*
   * Selection
   * For CSS background:
   * 
   */
  @Override
  public String getSelectionMenu() {
    return "#c0c0ff";
  }
  @Override
  public String getSelectionRow() {
    return "#8080ff";
  }
  public String getSelectionColumn() {
    return "#80ff80";
  }
  public String getSelectionCell() {
    return "#ff8080";
  }
  /*
   * For CSS margin:
   */
  @Override
  public String getMargin() {
    return "0px";
  }

  /*
   * For CSS border:
   */
  @Override
  public String getBorder() {
    return "0px none";
  }

  @Override
  public String getBorderRaised() {
    return "1px solid #555";
  }

  @Override
  public String getBorderPressed() {
    return "1px solid #00f";
  }

  @Override
  public String getBorderNormal() {
    return "1px solid #ccc";
  }
  @Override
  public String getBorderFocused() {
    return "1px solid #f00";
  }
  @Override
  public String getBorderImportant() {
    return "2px solid; border-color: #666 #bbb #bbb #666";
  }
  /*
   * Border
   */
  @Override
  public String getBorderMenu() {
    return "1px solid #0000f0";
  }
  @Override
  public String getBorderTabEast() {
    return "1px solid #bbbbbb; border-left: 0px";
  }
  @Override
  public String getBorderTabNorth() {
    return "1px solid #bbbbbb; border-bottom: 0px";
  }
  @Override
  public String getBorderTabSouth() {
    return "1px solid #bbbbbb; border-top: 0px";
  }
  @Override
  public String getBorderTabWest() {
    return "1px solid #bbbbbb; border-right: 0px";
  }
  /*
   * For CSS padding:
   */
  @Override
  public String getPadding() {
    return "0px";
  }
  @Override
  public String getEditPadding() {
    return "1px 4px";
  }
  @Override
  public String getTextPadding() {
    return "1px 4px 1px 4px";
  }
  @Override
  public String getTextPressedPadding() {
    return "2px 3px 0px 5px";
  }
  @Override
  public String getCaptionPadding() {
    return "4px 4px 4px 8px";
  }
  @Override
  public String getMenuPadding() {
    return "0px 10px";
  }
  @Override
  public String getBoxLabelPadding() {
    return "3px 0px 0px 5px";
  }
  @Override
  public String getDialogPadding() {
    return "4px";
  }
}
